package cn.moningxi.service.impl;

import cn.moningxi.bean.OrderDetail;
import cn.moningxi.mapper.OrderDetailMapper;
import cn.moningxi.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    @Autowired
    OrderDetailMapper orderDetailMapper;

    @Override
    public OrderDetail queryBuOrderId(Long orderId) {
        return orderDetailMapper.queryBuOrderId(orderId);
    }

    @Override
    public void updateOrderCnt(Long orderId, Integer amount) {
        orderDetailMapper.updateOrderCnt(orderId, amount);
    }
}
